package WizardInstall;
/*
SWT/JFace in Action
GUI Design with Eclipse 3.0
Matthew Scarpino, Stephen Holder, Stanford Ng, and Laurent Mihalkovic

ISBN: 1932394273

Publisher: Manning
*/


import org.eclipse.jface.wizard.WizardDialog;
import org.eclipse.swt.SWT;
import org.eclipse.swt.layout.FillLayout;
import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.widgets.Composite;

/**
 * wizard composite to install client
 * @author Guy & Liel
 *
 */
public class Ch11WizardComposite extends Composite {
  public Ch11WizardComposite(Composite parent) {
    super(parent, SWT.NONE);
    buildControls();
  }
/**
 * build controls on screen
 */
  protected void buildControls() {
    final Composite parent = this;
    FillLayout layout = new FillLayout();
    parent.setLayout(layout);

    Button dialogBtn = new Button(parent, SWT.PUSH);
    dialogBtn.setText("Wizard Dialog...");
    WizardDialog dialog = new WizardDialog(parent.getShell(),new ProjectWizard());
    dialog.open();
    
  }

}
